package com.jv.jdk;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyJdkInvocationHandler implements InvocationHandler {
	private UserDao target;
	public MyJdkInvocationHandler(UserDao target){
		this.target = target;
	}
	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		System.out.println("invoke before");
		method.invoke(target);
		System.out.println("invoke after");
		return null;
	}
}
